/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sistemavendas.dao;

import java.util.List;
import javax.persistence.EntityManager;

/**
 *
 * @author Elias
 * @param <T>
 * @param <PK>
 */
public interface InterfaceDAO<T, PK> {

    public T getById(Class<T> classe,PK pk);

    public boolean update(T entity);

    public T save(T entity);

    public boolean delete(T entity);

    public List<T> findAll(Class<T> classe);

    public EntityManager getEntityManager();
}
